package com.lagou.service;

import com.lagou.bean.User;
import com.lagou.dao.UserDao;
import com.lagou.factory.UserDaoFactory;

public class UserService {
    UserDao userDao;

    public UserService() {
        this.userDao = UserDaoFactory.getUserDao();
    }
    public User loginUserService(User user){
        return userDao.login(user);
    }

}
